#include <QApplication>
#include <QTranslator>
#include <QLocale>
#include <QLibraryInfo>
#include "mywidget.h"

int main (int argc , char *argv[])
{
    QApplication app(argc, argv);

    //Code pour traduire l'interface en francais
    QString locale = QLocale::system().name().section('_', 0 , 0);
    QTranslator translator;
    translator.load(QString("qt_") + locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    app.installTranslator(&translator);

    MyWidget w;
    w.show();

    return app.exec();
}
